<!DOCTYPE html>
<html lang="en" ng-app="myModule">
<head>
    <meta charset="UTF-8">
    <script src="../js/angular-1.3.0.js"></script>
    <script src="directive&controller.js"></script>
    <title>控制器和指令交互</title>
</head>
<body>
    <div ng-controller="myCtrl">
        <loader howToLoad="loadData()">滑动加载</loader>
    </div>
    <div ng-controller="myCtrl2">
        <loader howToLoad="loadData2()">滑动加载</loader>
    </div>
</body>
</html>